Skip to content

Enable OpenSearch error logging to CloudWatch#426

Merged
nickclyde merged 1 commit intomainfrom
nickclyde/372-opensearch-error-logs
Apr 6, 2026
Merged

Enable OpenSearch error logging to CloudWatch#426
nickclyde merged 1 commit intomainfrom
nickclyde/372-opensearch-error-logs

Conversation

@nickclyde
Copy link
Copy Markdown
Member

Summary

Closes #372

  • Adds log_publishing_options to the OpenSearch domain for ES_APPLICATION_LOGS, INDEX_SLOW_LOGS, and SEARCH_SLOW_LOGS
  • Creates three CloudWatch log groups with 14-day retention
  • Adds a CloudWatch log resource policy allowing the OpenSearch service to write logs

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.78%. Comparing base (d031555) to head (6550637).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #426   +/-   ##
=======================================
  Coverage   95.78%   95.78%           
=======================================
  Files          42       42           
  Lines        2183     2183           
=======================================
  Hits         2091     2091           
  Misses         92       92           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@robertandremitchell robertandremitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me

Copy link
Copy Markdown
Collaborator

@BradySkylight BradySkylight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only had one question and is this just for our local or is this intended for all environments. We expect to have Opensearch logs recording this information in APHLs AWS, correct?

@nickclyde
Copy link
Copy Markdown
Member Author

I only had one question and is this just for our local or is this intended for all environments. We expect to have Opensearch logs recording this information in APHLs AWS, correct?

This is just for our env, but I'm sure APHL will have something similar configured on their end!

@nickclyde nickclyde merged commit adc944a into main Apr 6, 2026
7 checks passed
@nickclyde nickclyde deleted the nickclyde/372-opensearch-error-logs branch April 6, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable OpenSearch error logging to CloudWatch

4 participants